package telebase;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.InvalidPropertiesFormatException;
import java.util.Properties;

public class i18n {

    private static Properties i18n = new Properties();

    public static void LoadXML(String filename) {
        try {
            i18n.loadFromXML(new FileInputStream(filename));
        } catch (InvalidPropertiesFormatException ex) {
            System.out.println("i18n.LoadXML: " + ex.toString());
        } catch (IOException ex) {
            System.out.println("i18n.LoadXML: " + ex.toString());
        }
    }

    public static String get(String key) {
        return i18n.getProperty(key);
    }
}
